<div class="row">
	<div class="col-lg-12">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			日志信息<#if logList??>（${userList.totalElements!''}）</#if>
		</h1>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12">
				<table class="layui-table" lay-skin="line">
				  <thead>
					<tr>
					  <th nowrap="nowrap">类名</th>
					  <th nowrap="nowrap">方法</th>
					  <th nowrap="nowrap">级别</th>
					  <th nowrap="nowrap">时间</th>
					  <th nowrap="nowrap">内容</th>
					</tr> 
				  </thead>
				  <tbody>
					<#if logList?? && logList.content??>
					<#list logList.content as log>
					<tr class="log <#if log.levels?? && log.levels == "ERROR">error<#elseif log.levels?? && log.levels == "WARN">warn</#if>">
					  <td nowrap="nowrap" title="${log.clazz!''}">
					  	  <a href="/admin/log/detail.html?id=${log.id!''}" data-toggle="ajax" data-width="950" data-height="550" data-title="查看日志详细信息">
					  		<#if log.memo?length gt 100>
					  		${log.memo[0..100]}
					  		<#else>
					  		${log.memo!''}
					  		</#if>
					  	   </a>
					  </td>
					  <td nowrap="nowrap">${log.method!''}</td>
					  <td nowrap="nowrap">${log.levels!''}</td>
					  <td nowrap="nowrap">${log.createdate?string("yyyy-MM-dd HH:mm:ss")}</td>
					  <td nowrap="nowrap">
					  		<#if log.msg?length gt 30>
					  		${log.msg[0..30]}
					  		<#else>
					  		${log.msg!''}
					  		</#if>
					  </td>
					  
					</tr>
					</#list>
					</#if>
				  </tbody>
				</table>
			</div> 	   
		</div>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12" id="page" style="text-align:center;"></div>
		</div>
	</div>	
</div>
<script>
	layui.use(['laypage', 'layer'], function(){
		  var laypage = layui.laypage
		  ,layer = layui.layer;
		  
		  laypage({
				cont: 'page'
				,pages: <#if logList??>${logList.totalPages}<#else>0</#if> //总页数
				,curr:<#if logList??>${logList.number+1}<#else>0</#if>
				,groups: 5 //连续显示分页数
				,jump:function(data , first){
					if(!first){
						location.href = "/admin/log/index.html?p="+data.curr ;
					}
				}
		   });
		});
</script>